package com.hutu.kboshi.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hutu.kboshi.pojo.dto.questionbank.QuestionBankQueryRequest;
import com.hutu.kboshi.pojo.entity.QuestionBank;
import com.hutu.kboshi.pojo.vo.QuestionBankVO;

import javax.servlet.http.HttpServletRequest;


/**
* @author 20272
* @description 针对表【question_bank(题库)】的数据库操作Service
* @createDate 2024-09-24 22:41:22
*/
public interface QuestionBankService {

    /**
     * 校验数据
     *
     * @param questionBank
     * @param add 对创建的数据进行校验
     */
    void validQuestionBank(QuestionBank questionBank, boolean add);


    void save(QuestionBank questionBank);

    QuestionBank getQuestionBankById(long id);

    void removeQuestionBankById(long id);

    boolean updateById(QuestionBank questionBank);

    Page<QuestionBank> pages(QuestionBankQueryRequest questionBankQueryRequest);

    Page<QuestionBank> pagess(QuestionBankQueryRequest questionBankQueryRequest);

    Page<QuestionBankVO> getQuestionBankVOPage(Page<QuestionBank> questionBankPage, HttpServletRequest request);

    Boolean checkProcessAndUpdate(QuestionBank questionBank);

}
